﻿<?php 
if( !defined(OK) ) {
	die("hacking attacks!");
} 

?> 
<!DOCTYPE html>
<html>
<head>
	<meta charset="UTF-8">
	<link type="text/css" href="http://project.tk/template/admin/css/bootstrap.css" rel="stylesheet">
	<link type="text/css" href="http://project.tk/admin/product.css" rel="stylesheet">
	<script src="http://project.tk/js/jquery/jquery-1.9.1.min.js"></script>
	<script src="http://project.tk/js/jquery/jquery-ui.min.js"></script>
	<script src="http://project.tk/js/jquery/bootstrap.min.js"></script>

	
	<script src="http://project.tk/js/json/jquery.json-2.4.min.js"></script>
	<script src="http://project.tk/js/remote/call.js"></script>
	<script src="http://project.tk/admin/product.js"></script>
<script>
$(document).ready(function() {
$("#delete_product").draggable({});
});
</script>
<style>
</style>
</head>
<body>
<div id="editor">
	<div id="sort">
		<div class="list">
			<span onclick="sort(1,event)">Տաք ուտեստներ</span>
			<span onclick="sort(2,event)">Ալկոհոլային խմիչքներ</span>
			<span onclick="sort(3,event)">Աղցաններ</span>
			<span onclick="sort(4,event)">Սառը խորտիկներ</span>
			<span onclick="sort(5,event)">Ապուրներ</span>
			<span onclick="sort(6,event)">Հատուկ խոհանոց</span>
			<span onclick="sort(7,event)">Ոչ ալկոհոլային խմիչքներ</span>
			<span onclick="sort(8,event)">Աղանդեր</span>
			<span onclick="sort(9,event)">Թեյ, սուրճ</span>
		</div>
	</div>
	<div id="products_1" class="products" style="display: none;">
		<div class="list">
			<span onclick="product(1,event)">product 1</span>
			<span onclick="product(2,event)">product 2</span>
			<span onclick="product(3,event)">product 3</span>
			<span onclick="product(4,event)">product 4</span>
			<span onclick="product(5,event)">product 5</span>
			<span onclick="product(6,event)">product 6</span>
			<span onclick="product(7,event)">product 7</span>
			<span onclick="product(8,event)">product 8</span>
			<span onclick="product(9,event)">product 9</span>
		</div>
	</div>
	<div id="products_2" class="products" style="display: none;">
		<div class="list">
			<span onclick="product(7,event)">5589</span>
			<span onclick="product(7,event)">124558755</span>
			<span onclick="product(7,event)">465465465</span>
			<span onclick="product(7,event)">gfhjfghjfghj</span>
			<span onclick="product(7,event)">fghjfghjfghj</span>
			<span onclick="product(7,event)">fghjfghjfghjfghj</span>
			<span onclick="product(7,event)">cvncvbncvbn</span>
			<span onclick="product(7,event)">Աշխաfghtjymukyտանք</span>
			<span onclick="product(7,event)">njghjnfghj</span>
		</div>
	</div>
	<div id="products_3" class="products" style="display: none;">
		<div class="list">
			<span onclick="product(7,event)">5589</span>
			<span onclick="product(7,event)">124558755</span>
			<span onclick="product(7,event)">465465465</span>
			<span onclick="product(7,event)">gfhjfghjfghj</span>
			<span onclick="product(7,event)">fghjfghjfghj</span>
			<span onclick="product(7,event)">fghjfghjfghjfghj</span>
			<span onclick="product(7,event)">cvncvbncvbn</span>
			<span onclick="product(7,event)">Աշխաfghtjymukyտանք</span>
			<span onclick="product(7,event)">njghjnfghj</span>			
			<span onclick="product(7,event)">5589</span>
			<span onclick="product(7,event)">124558755</span>
			<span onclick="product(7,event)">465465465</span>
			<span onclick="product(7,event)">gfhjfghjfghj</span>
			<span onclick="product(7,event)">fghjfghjfghj</span>
			<span onclick="product(7,event)">fghjfghjfghjfghj</span>
			<span onclick="product(7,event)">cvncvbncvbn</span>
			<span onclick="product(7,event)">Աշխաfghtjymukyտանք</span>
			<span onclick="product(7,event)">njghjnfghj</span>			
			<span onclick="product(7,event)">5589</span>
			<span onclick="product(7,event)">124558755</span>
			<span onclick="product(7,event)">465465465</span>
			<span onclick="product(7,event)">gfhjfghjfghj</span>
			<span onclick="product(7,event)">fghjfghjfghj</span>
			<span onclick="product(7,event)">fghjfghjfghjfghj</span>
			<span onclick="product(7,event)">cvncvbncvbn</span>
			<span onclick="product(7,event)">Աշխաfghtjymukyտանք</span>
			<span onclick="product(7,event)">njghjnfghj</span>			
			<span onclick="product(7,event)">5589</span>
			<span onclick="product(7,event)">124558755</span>
			<span onclick="product(7,event)">465465465</span>
			<span onclick="product(7,event)">gfhjfghjfghj</span>
			<span onclick="product(7,event)">fghjfghjfghj</span>
			<span onclick="product(7,event)">fghjfghjfghjfghj</span>
			<span onclick="product(7,event)">cvncvbncvbn</span>
			<span onclick="product(7,event)">ԱշխաfghtjymukyտանքԱշխաfghtjymukyտանքԱշխաfghtjymukyտանքԱշխաfghtjymukyտանքԱշխաfghtjymukyտանքԱշխաfghtjymukyտանք</span>
			<span onclick="product(7,event)">njghjnfghj</span>			
			<span onclick="product(7,event)">5589</span>
			<span onclick="product(7,event)">124558755</span>
			<span onclick="product(7,event)">465465465</span>
			<span onclick="product(7,event)">gfhjfghjfghj</span>
			<span onclick="product(7,event)">fghjfghjfghj</span>
			<span onclick="product(7,event)">fghjfghjfghjfghj</span>
			<span onclick="product(7,event)">cvncvbncvbn</span>
			<span onclick="product(7,event)">Աշխաfghtjymukyտանք</span>
			<span onclick="product(7,event)">njghjnfghj</span>
		</div>
	</div>
	<div id="products_4" class="products" style="display: none;">
		<div class="list">
			<span onclick="product(7,event)">5589</span>
			<span onclick="product(7,event)">124558755</span>
			<span onclick="product(7,event)">465465465</span>
			<span onclick="product(7,event)">gfhjfghjfghj</span>
			<span onclick="product(7,event)">fghjfghjfghj</span>
			<span onclick="product(7,event)">fghjfghjfghjfghj</span>
			<span onclick="product(7,event)">cvncvbncvbn</span>
			<span onclick="product(7,event)">Աշխաfghtjymukyտանք</span>
			<span onclick="product(7,event)">njghjnfghj</span>
		</div>
	</div>
	<div id="form" style="display: none;">
<!-- Modal -->
<div id="delete_product" class="modal hide fade" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true" style="top:30%">
  <div class="modal-header">
    <button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>
    <h3 id="myModalLabel">Modal header</h3>
  </div>
  <div class="modal-body">
    <p>One fine body…</p>
  </div>
  <div class="modal-footer">
    <button class="btn" data-dismiss="modal" aria-hidden="true">Close</button>
    <button class="btn btn-primary">Save changes</button>
  </div>
</div>
		<td style="width:100px"><label for="price" >price :</label></td>
		<td style="width:100px"><input type="text" id="price" style="width:100px"/></td>
<table style="width:500px;height:530px;border-collapse:collapse;" border="0">
	<tr>
		<td colspan = "2">
			<div class="btn-group" data-toggle="buttons-radio">
			  <button id="status_on" type="button" class="btn yes" onclick="modification();">Yes</button>
			  <button id="status_off" type="button" class="btn no" onclick="modification();">No</button>
			</div>

		</td>
	</tr>
	<tr class="r1">
		<td><label for="name_am" >name_am :</label></td>
		<td><input type="text" class="am" id="name_am" style="width:200px" onchange="modification();"/></td>
	</tr>
	<tr>
		<td><label for="description_am" >description_am :</label></td>
		<td><textarea class="am" id="description_am" style="width:200px;max-width:200px;max-height:100px;" onchange="modification();">текст</textarea></td>
	</tr>
	<tr class="r1">
		<td><label for="name_ru" >name_ru :</label></td>
		<td><input type="text" class="ru" id="name_ru" style="width:200px" onchange="modification();"/></td>
	</tr>
	<tr>
		<td><label for="description_ru" >description_ru :</label></td>
		<td><textarea class="ru" id="description_ru" style="width:200px;max-width:200px;max-height:100px;" onchange="modification();">текст</textarea></td>
	</tr>
	<tr class="r1">
		<td><label for="name_en" >name_en :</label></td>
		<td><input type="text" class="en" id="name_en" style="width:200px" onchange="modification();" /></td>
	</tr>
	<tr>
		<td><label for="description_en" >description_en :</label></td>
		<td><textarea class="en" id="description_en" style="width:200px;max-width:200px;max-height:100px;" onchange="modification();">текст</textarea></td>
	</tr>
	<tr>
		<td colspan = "2" style="text-align:right;">
			<button id="delete_product_link" class="btn btn-link" type="button" data-toggle="modal" data-target="#delete_product">Launch modal</button>
			<button id="save_product" class="btn btn-primary" type="button" onclick="save();">Default button</button>
		</td>
	</tr>
</table>

</div>
</div>
</body>
</html>